/** @format */

import {BasketActionTypes, IBasketAdd} from './BasketTypes';
import {IProduct} from './ProductsData';

export const addToBasket = (product: IProduct): IBasketAdd => ({
  product,
  type: BasketActionTypes.ADD,
});
